
// rtk 的模块化操作
import { configureStore } from '@reduxjs/toolkit'
//导入 商品数据切片
import goodsSlice from './reducers/goodsReducer'

// 导入用户数据切片
import userSlice from './reducers/userReducer'

const store = configureStore({
    reducer: {
        goods: goodsSlice.reducer,
        user: userSlice.reducer
    }
})

// 第五步: 导出仓库
export default store
